package string;
/**
 *  去掉字符串两侧空白祖父
 */


public class TrimDemo {
    public static void main(String[] args) {
        String str = "             Hello World       ";
        System.out.println(str);
        str = str.trim();
        System.out.println(str);


    }
}
